CVE-2025-38085
mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race
Description
In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race huge_pmd_unshare() drops a reference on a page table that may have previously been shared across processes, potentially turning it into a normal page table used in another process in which unrelated VMAs can afterwards be installed. If this happens in the middle of a concurrent gup_fast(), gup_fast() could end up walking the page tables of another process. While I don't see any way in which that immediately leads to kernel memory corruption, it is really weird and unexpected. Fix it with an explicit broadcast IPI through tlb_remove_table_sync_one(), just like we do in khugepaged when removing page tables for a THP collapse.
INFO
Published Date :
June 28, 2025, 8:15 a.m.
Last Modified :
Dec. 18, 2025, 9:21 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Linux kernel to the latest stable version.
- Apply the specific patch for the hugetlb race condition.
- Ensure proper synchronization in page table operations.
- Test system stability after the update.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-38085.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-38085 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-38085
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-38085 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-38085 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 18, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-362 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.186 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.142 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.95 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.20 up to (excluding) 5.10.239 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.15.4 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.35 Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Added Reference Type kernel.org: https://git.kernel.org/stable/c/034a52b5ef57c9c8225d94e9067f3390bb33922f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/1013af4f585fccc4d3e5c5824d174de2257f7d6d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/952596b08c74e8fe9e2883d1dc8a8f54a37384ec Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a3d864c901a300c295692d129159fc3001a56185 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a6bfeb97941a9187833b526bc6cc4ff5706d0ce9 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/b7754d3aa7bf9f62218d096c0c8f6c13698fac8b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/fe684290418ef9ef76630072086ee530b92f02b8 Types: Patch Added Reference Type CVE: https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html Types: Third Party Advisory Added Reference Type CVE: https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html Types: Third Party Advisory Added Reference Type kernel.org: https://project-zero.issues.chromium.org/issues/420715744 Types: Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 03, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html Added Reference https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 30, 2025
Action Type Old Value New Value Added Reference https://project-zero.issues.chromium.org/issues/420715744 -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 28, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race huge_pmd_unshare() drops a reference on a page table that may have previously been shared across processes, potentially turning it into a normal page table used in another process in which unrelated VMAs can afterwards be installed. If this happens in the middle of a concurrent gup_fast(), gup_fast() could end up walking the page tables of another process. While I don't see any way in which that immediately leads to kernel memory corruption, it is really weird and unexpected. Fix it with an explicit broadcast IPI through tlb_remove_table_sync_one(), just like we do in khugepaged when removing page tables for a THP collapse. Added Reference https://git.kernel.org/stable/c/034a52b5ef57c9c8225d94e9067f3390bb33922f Added Reference https://git.kernel.org/stable/c/1013af4f585fccc4d3e5c5824d174de2257f7d6d Added Reference https://git.kernel.org/stable/c/952596b08c74e8fe9e2883d1dc8a8f54a37384ec Added Reference https://git.kernel.org/stable/c/a3d864c901a300c295692d129159fc3001a56185 Added Reference https://git.kernel.org/stable/c/a6bfeb97941a9187833b526bc6cc4ff5706d0ce9 Added Reference https://git.kernel.org/stable/c/b7754d3aa7bf9f62218d096c0c8f6c13698fac8b Added Reference https://git.kernel.org/stable/c/fe684290418ef9ef76630072086ee530b92f02b8